<ui:composition template="/admin/templates/ui.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite/primefaces"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:archer="http://java.sun.com/jsf/archer"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	
	<f:metadata>
		<f:viewParam name="id" value="#{systemLoanTypeHome.id}"></f:viewParam>
	</f:metadata>
	<ui:define name="content">
		<div class="entry">
			<p:toolbar styleClass="admin-nav-toolbar">
				<p:toolbarGroup>
					<h:outputLabel
						value="#{commonMsg.currentPositionLabel} 新增借款产品"></h:outputLabel>
				</p:toolbarGroup>
				<p:toolbarGroup align="right">
					<p:separator />
					<p:button outcome="/admin/test/systemLoanType"
						value="借款产品列表"></p:button> 
				</p:toolbarGroup>
			</p:toolbar>
			<p:spacer></p:spacer>
			<h:form id="form">
				<h:panelGrid columns="2" columnClasses="col1,col2" id="panel">

					<h:outputLabel value="产品名称 "></h:outputLabel>
					<h:inputText label="产品名称" required="true"
						value="#{systemLoanTypeHome.instance.name}" maxlength="100">
					</h:inputText>
						
					<h:outputLabel value="状态"></h:outputLabel>
					<h:selectOneMenu value="#{systemLoanTypeHome.instance.status}" required="true">
						<f:selectItem itemValue="1"
							itemLabel="使用中" />
						<f:selectItem itemValue="2"
							itemLabel="停用" />
					</h:selectOneMenu>

					
					
					
					
					<h:outputLabel value="#{commonMsg.actionLabel}"></h:outputLabel>
					<ui:fragment>
						<h:inputHidden value="#{systemLoanTypeHome.instance.id}"></h:inputHidden>
						<p:commandButton id="saveBtn" action="#{systemLoanTypeHome.save}"
							ajax="false" value="#{commonMsg.saveLabel}"></p:commandButton>
						<p:commandButton type="reset" value="#{commonMsg.resetLabel}"></p:commandButton>
						<p:blockUI block="panel" trigger="saveBtn" />
					</ui:fragment>
				</h:panelGrid>
				

			</h:form>
		</div>
	</ui:define>
</ui:composition>

